package com.otaliastudios.cameraview.livedata

import androidx.annotation.MainThread
import androidx.lifecycle.MutableLiveData


class DataRateLiveData() : MutableLiveData<Long>() {
    companion object {
        private lateinit var sInstance: DataRateLiveData

        @MainThread
        fun get(): DataRateLiveData {
            sInstance = if (Companion::sInstance.isInitialized) sInstance else DataRateLiveData()
            return sInstance
        }
    }

}